package com.cangxuan.manage.service;

import com.cangxuan.manage.bean.Page;
import com.cangxuan.manage.entity.Goods;
import com.cangxuan.manage.entity.Registration;
import com.cangxuan.manage.entity.UserAmountRecord;

import java.sql.SQLIntegrityConstraintViolationException;
import java.util.List;
/**
 * 挂单接口
 * 作者：游星宇
 */
public interface IRegistrationService {
    List<Registration> list(String name ,Integer userId);



    /**
     * 根据用户id查询挂单,分页
     * @param pageIndex
     * @param pageSize
     * @param userId
     * @return
     */
    Page<Registration> page(int pageIndex, int pageSize, String name ,Integer userId);

    boolean save(int id);
}
